package fr.contest.eureka.game;

import java.util.ArrayList;

import com.google.inject.Singleton;

import fr.contest.eureka.entity.Player;

/**
 * Engine for game
 * @author Romain
 *
 */
@Singleton
public class GameEngine 
{
	/** Player list. */
	private ArrayList<Player> mPlayerList = new ArrayList<Player>();
	
	/**
	 * Getter for player list.
	 */
	public ArrayList<Player> getPlayerList()
	{
		return mPlayerList;
	}
	
	public void addPlayer(Player aPlayer)
	{
		if(!mPlayerList.contains(aPlayer))
		{
			mPlayerList.add(aPlayer);
		}
	}
}
